
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>404</title>

    <script th:src="@{/js/jquery.min.js}"></script>
    <style>
        body {
            background-image:url(/p2p/img/500.jpg);
            background-position:center top;
            background-repeat:no-repeat
        }
    </style>
</head>
<body>
    <div class="am-g tpl-g" style="margin-top: 600px">
        <h1 style="color: #caebfb;text-align: center">你所访问的资源有误,页面将在<span id="time">5</span>s后跳转至主页,<a>点击此处</a>立即跳转</h1>
    </div>

    <script>
        var int=self.setInterval("clock()",1000);
        function clock()
        {
            var dim=$("#time");
            d=dim.html();
            if(d==0){
                window.clearInterval(int);
                location.href = "${pageContext.request.contextPath}/jsp/mainPage.jsp";
            }else{
                dim.text(d-1);
            }
        }
    </script>
</body>
</html>
